namespace Pic.Web
{
    using System;
    using System.Web;
    using Castle.ActiveRecord;
    using Castle.ActiveRecord.Framework;
    using Castle.ActiveRecord.Framework.Config;
    using Pic.Model;

    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            IConfigurationSource source = ActiveRecordSectionHandler.Instance;
            ActiveRecordStarter.Initialize(System.Reflection.Assembly.Load("Pic.Model"), source);
        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}